package com.oa.hyperion.service.impl;

import com.oa.hyperion.entity.assets.AssetsType;
import com.oa.hyperion.repository.assets.AssetsTypeMapper;
import com.oa.hyperion.service.AssetsTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AssetsTypeServiceImpl implements AssetsTypeService {
    @Autowired
    private AssetsTypeMapper assetsTypeMapper;


    @Override
    public boolean insert(AssetsType assetsType) {
        return assetsTypeMapper.insert(assetsType);
    }

    @Override
    public List<AssetsType> getAssetsTypes() {
        return assetsTypeMapper.getAssetsTypes();
    }

    @Override
    public AssetsType getAssetsTypeById(int id) {
        return assetsTypeMapper.getAssetsTypeById(id);
    }

    @Override
    public AssetsType getAssetsTypeByType(String type) {
        return assetsTypeMapper.getAssetsTypeByType(type);
    }
}
